
const fs=require('fs');
const path=require('path');
const chalk=require('chalk');
const {randomColor}=require('./index');
let timers;

exports.actionHandle= options =>{
    let newp=path.join(__dirname,'../../banner.txt');
    let dates=0;
    let result=fs.readFileSync(newp,"utf-8");
  
  timers=setInterval(()=>{
        console.log(chalk.hex(randomColor())(result));
       dates=dates+1;
       console.log(dates);
       if(dates==5){
        return clearInterval(timers);
      }
    },1000)

    

}


